package co.yixiang.modules.config.entity.domain;

import co.yixiang.common.domain.BaseDomain;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;

@Data
@TableName("setting")
@EqualsAndHashCode(callSuper = true)
@NoArgsConstructor
public class Setting extends BaseDomain {

    private static final long serialVersionUID = 1L;
    @TableId
    private String id;

    @ApiModelProperty(value = "配置值value")
    @NotBlank(message = "配置值不能为空")
    private String settingValue;


}
